package xyz.xtt.admin.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import xyz.xtt.admin.entity.TblUser;
import xyz.xtt.admin.vo.UserVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户基础信息表 服务类
 * </p>
 *
 * @author author
 * @since 2024-11-26
 */
public interface IUserService extends IService<TblUser> {
    TblUser getUserByAppUserId(Long id);
    TblUser getUserByName(String name);
    TblUser getUserByNameAndPhone(String name, String phone) throws Exception;
    Map<String, TblUser> getUserListByAppUserIds(List<String> ids);
    List<TblUser> getUserByPhone(List<String> phones);
    Page<UserVo> getList(Integer current, Integer pageSize, String phone, Long Id, String nickname) throws Exception;
    TblUser getUserByPhone(String phone);
}
